using System;
using System.Collections.Generic;
using System.Text;

namespace ClickSocial.Framework
{
    public class Mime
    {
        static public string GetInExtension(string ext)
        {
            string mime = string.Empty;
            switch (ext.ToLower())
            {
                case ".bmp":
                    mime = "image/bmp";
                    break;
                case ".gif":
                    mime = "image/gif";
                    break;
                case ".jpg":
                    mime = "image/jpeg";
                    break;
                case ".jpeg":
                    mime = "image/jpeg";
                    break;
                case ".png":
                    mime = "image/png";
                    break;
                case ".mid":
                    mime = "audio/midi";
                    break;
                case ".midi":
                    mime = "audio/midi";
                    break;
                case ".jad":
                    mime = "text/vnd.sun.j2me.app-descriptor";
                    break;
                case ".dd":
                    mime = "application/vnd.oma.dd+xml";
                    break;
                case ".dm":
                    mime = "application/vnd.oma.drm.message";
                    break;
                case ".3gp":
                    mime = "video/3gpp";
                    break;
                case ".amr":
                    mime = "audio/amr";
                    break;
                case ".awb":
                    mime = "audio/amr-wb";
                    break;
                case ".cod":
                    mime = "image/cis-cod";
                    break;
                case ".jar":
                    mime = "application/java-archive";
                    break;
                case ".mmf":
                    mime = "application/x-smaf";
                    break;
                case ".mp3":
                    mime = "audio/mpeg";
                    break;
                case ".nol":
                    mime = "image/vnd.nok-oplogo-color";
                    break;
                case ".nth":
                    mime = "application/vnd.nok-s40theme";
                    break;
                case ".ra":
                    mime = "audio/x-pn-realaudio";
                    break;
                case ".ram":
                    mime = "audio/x-pn-realaudio";
                    break;
                case ".rmi":
                    mime = "audio/mid";
                    break;
                case ".sis":
                    mime = "application/vnd.symbian.install";
                    break;
                case ".tif":
                    mime = "image/tiff";
                    break;
                case ".wav":
                    mime = "audio/wav";
                    break;
                case ".wbmp":
                    mime = "image/vnd.wap.wbmp";
                    break;
                case ".n3a":
                    mime = "image/vnd.nok-3dscreensaver";
                    break;
                case ".qcp":
                    mime = "audio/vnd.qcelp";
                    break;
                case ".3g2":
                    mime = "video/3gpp2";
                    break;
            }

            return mime;
        }
    }
}
